/**
 * 
 */
package it.uniroma3.dia.digraph.view.interpolation;

import org.graphdrawing.graphml.xmlns.NodeType;

/**
 * @author BarycentricCoords
 *
 */
public class NodeView {
	
	private String id;	
	private double x;
	private double y;
	private boolean isDefault;
	
	public NodeView(NodeType node){
		this.id = node.getId();
		this.x = (int)node.getX();
		this.y = (int)node.getY();
		this.isDefault = node.isDefault();
	}
	
	public NodeView(String id) {
	    this.id = id;
	    this.x = 0;
	    this.y = 0;
	    this.isDefault = true;
	}
	
	public NodeView(NodeView node){
		this.id = node.getId();
		this.x = (int)node.getX();
		this.y = (int)node.getY();
		this.isDefault = node.isDefault();
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	public boolean isDefault() {
		return isDefault;
	}

	public void setDefault(boolean isDefault) {
		this.isDefault = isDefault;
	}

}
